package horncomb.bpm.interact;

import java.util.HashMap;
import java.util.Map;

import horncomb.bpm.interact.common.MockBizEditForm;
import horncomb.bpm.interact.common.MockTaskForm;
import horncomb.bpm.task.support.TaskFormService;

/**
 * @author Daniel
 */
public class HardCodingBizFormService {
	public TaskFormService taskFormService;

	public Map<String, Object> showReference(MockBizEditForm form) {
		Map<String, Object> result = new HashMap<String, Object>();
		// result.putAll(this.taskFormService.showReference(form.getTaskForm(),
		// form));
		return result;
	}

	public MockBizEditForm get(MockBizEditForm form) {
		// ... copy entity to form
		form.getTaskForm().setProcessDefinitionKey(MockTaskForm.PROC_DEF_KEY);
		this.taskFormService.get(form.getTaskForm());
		return form;
	}

	/**
	 * @param taskFormService
	 *            the taskFormService to set
	 */
	public void setTaskFormService(TaskFormService taskFormService) {
		this.taskFormService = taskFormService;
	}
}
